<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%><%-- ${fn:length(list)} --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
	document.onkeydown = function(e) {
		key = (e) ? e.keyCode : event.keyCode;

		if (key == 8 || key == 116) {
			if (e) { //표준         
				e.preventDefault();
			} else { //익스용
				event.keyCode = 0;
				event.returnValue = false;
			}
		}
	}

	function deleteBoard() {
		if (confirm("게시글을 삭제하시겠습니까?")) {
			location.href = "mycinema.do?command=deleteBoard&board_no=${requestScope.bvo.board_no }";
		}
	}
	function updateBoard() {
		if (confirm("게시글을 수정하시겠습니까?")) {
			location.href = "mycinema.do?command=updateView&board_no=${requestScope.bvo.board_no }";
		}
	}
	function replyBoard() {
		if (confirm("답변을 달겠습니까?")) {
			location.href = "mycinema.do?command=replyView&board_no=${requestScope.bvo.board_no}&pageNo=${requestScope.page}";
		}
	}
</script>
</head>
<body>
<span class="title">고객의소리 - 글보기</span><br>
	<table cellpadding="5">
		<tr>
			<td>

				<table width="550">
					<tr>
						<td><b>글번호: ${requestScope.bvo.board_no } |
								타이틀:${requestScope.bvo.board_title }</b>

							<hr style="color: #6691BC; border-style: dotted; margin: 0">
						</td>
					</tr>
					<tr>
						<td><font size="2">작성자: ${requestScope.bvo.memberVO.name }|
								작성일시:${requestScope.bvo.write_date } count:${requestScope.bvo.board_count}</font>
						</td>
					</tr>
					<tr>
						<td>
							<hr style="color: #6691BC; margin: 0"> <pre>${requestScope.bvo.content}</pre>
						</td>
					</tr>
					<tr>
						<td valign="middle">
						<img alt="답글" border="0" onclick="replyBoard()" src="img.board/answer_btn.jpg">
						<a href="mycinema.do?command=board"><img alt="목록" border="0" src="img.board/list_btn.jpg"></a>
					<c:if test="${requestScope.bvo.memberVO.member_no==sessionScope.vo.member_no}">
						 <img alt="삭제" onclick="deleteBoard()" border="0"
							src="img.board/delete_btn.jpg"> 
							<img alt="수정" onclick="updateBoard()" border="0" src="img.board/modify_btn.jpg">
						</c:if>
						</td>
					</tr>
				</table> 	
			</td>
		</tr>
	</table>	
</body>
</html>






























